Package com.cisco.pt.ipc.sim.impl
Class NATConfigEntryImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCDataImpl
com.cisco.pt.ipc.sim.impl.NATConfigEntryImpl
- All Implemented Interfaces:
IPCData,NATConfigEntry
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected intprotected IPAddressprotected booleanprotected Stringprotected LinksysProtocol -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintbooleangetName()voidread(EncodedBuffer buffer) Reads this object from an EncodedBuffer of raw datavoidsetExternalPort(int externalPort) voidsetInternalPort(int internalPort) voidsetIpAddress(IPAddress ipAddress) voidsetIsEnable(boolean isEnable) voidvoidsetProtocol(LinksysProtocol protocol) Methods inherited from class com.cisco.pt.ipc.impl.IPCDataImpl
checkType, pduReadBoolean, pduReadByte, pduReadDouble, pduReadFloat, pduReadInt, pduReadIPAddress, pduReadIPCData, pduReadIPV6Address, pduReadLong, pduReadMACAddress, pduReadPair, pduReadQString, pduReadShort, pduReadString, pduReadUUID, pduReadVector, readBoolean, readByte, readDouble, readFloat, readInt, readIPAddress, readIPCData, readIPV6Address, readLong, readMACAddress, readPair, readQString, readShort, readString, readUUID, readVector
-
Field Details
-
name
-
externalPort
protected int externalPort -
internalPort
protected int internalPort -
protocol
-
ipAddress
-
isEnable
protected boolean isEnable
-
-
Constructor Details
-
NATConfigEntryImpl
public NATConfigEntryImpl()
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceNATConfigEntry- Returns:
- String Returns a String
-
setName
- Specified by:
setNamein interfaceNATConfigEntry- Parameters:
name- Takes in a parameter of name
-
getExternalPort
public int getExternalPort()- Specified by:
getExternalPortin interfaceNATConfigEntry- Returns:
- int Returns a int
-
setExternalPort
public void setExternalPort(int externalPort) - Specified by:
setExternalPortin interfaceNATConfigEntry- Parameters:
externalPort- Takes in a parameter of externalPort
-
getInternalPort
public int getInternalPort()- Specified by:
getInternalPortin interfaceNATConfigEntry- Returns:
- int Returns a int
-
setInternalPort
public void setInternalPort(int internalPort) - Specified by:
setInternalPortin interfaceNATConfigEntry- Parameters:
internalPort- Takes in a parameter of internalPort
-
getProtocol
- Specified by:
getProtocolin interfaceNATConfigEntry- Returns:
- LinksysProtocol Returns a LinksysProtocol
-
setProtocol
- Specified by:
setProtocolin interfaceNATConfigEntry- Parameters:
protocol- Takes in a parameter of protocol
-
getIpAddress
- Specified by:
getIpAddressin interfaceNATConfigEntry- Returns:
- IPAddress Returns a IPAddress
-
setIpAddress
- Specified by:
setIpAddressin interfaceNATConfigEntry- Parameters:
ipAddress- Takes in a parameter of ipAddress
-
getIsEnable
public boolean getIsEnable()- Specified by:
getIsEnablein interfaceNATConfigEntry- Returns:
- boolean Returns a boolean
-
setIsEnable
public void setIsEnable(boolean isEnable) - Specified by:
setIsEnablein interfaceNATConfigEntry- Parameters:
isEnable- Takes in a parameter of isEnable
-
read
Reads this object from an EncodedBuffer of raw data- Specified by:
readin interfaceIPCData- Specified by:
readin classIPCDataImpl- Parameters:
buffer- The EncodedBuffer that contains the raw data from which to construct this object
-